<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<style>
	div {padding: 100px;}	
</style>
<script>
	window.onload = function()
	{
		
	}
	</script>
</head>

<body onclick="alert('body');">
<div style="background: yellow;" onClick="alert(this.style.background); ">
		<div style="background: green;" onClick="alert(this.style.background);">
						<div style="background: red;" onClick="alert(this.style.background);">
							
						</div>
		</div>
	
</div>
</body>
</html>
